public class test23 {
    public static void main(String[] args) {
        int[] a = {1, 2, 3, 4, 5,6,7,8,10,9};
        for (int i = 0; i < a.length; i++) {
           for(int j =a.length-1;j>i;j--) {
               if (a[i] < a[j]) {
                   int temp = a[i];
                   a[i] = a[j];
                   a[j] = temp;
               }
           }
        }
        for (int i = 0; i < a.length; i++) {
            System.out.println(a[i]);
        }
    }
    }